import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
      children: [
        {
          path: '/1-sjgl',
          name: '数据概览',
          component: () => import('../views/1-sjgl/1-sjgl.vue'),
        },
        {
          path: '/2-hxrgl',
          name: '候选人管理',
          component: () => import('../views/2-hxrgl/2-hxrgl.vue'),
        },
        {
          path: '/a-tmflgl',
          name: '题目分类管理',
          component: () => import('../views/3-tkgl/a-tmflgl.vue'),
        },
        {
          path: '/b-tmjgl',
          name: '题目集管理',
          component: () => import('../views/3-tkgl/b-tmjgl.vue'),
        },
        {
          path: '/c-tmgl',
          name: '题目管理',
          component: () => import('../views/3-tkgl/c-tmgl.vue'),
        },
        {
          path: '/4-msjl',
          name: '面试记录',
          component: () => import('../views/4-msjl/4-msjl.vue'),
        },
        {
          path: '/5-msap',
          name: '面试安排',
          component: () => import('../views/5-msap/5-msap.vue'),
        },
        {
          path: '/6-zwgl',
          name: '职位管理',
          component: () => import('../views/6-zwgl/6-zwgl.vue'),
        },
        {
          path: '/7-msggl',
          name: '面试官管理',
          component: () => import('../views/7-msggl/7-msggl.vue'),
        },
        {
          path: '/8-xtsz',
          name: '系统设置',
          component: () => import('../views/8-xtsz/8-xtsz.vue'),
        },
      ],
    },
  ],
})

export default router
